grammar{

start = element foo{xsd:boolean{pattern="true|false"}|xsd:integer}
 

}
